from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.core.context_processors import csrf
from django.template import RequestContext
from company.models import *
from documents.models import *
from Person.models import *
from django.contrib.auth.decorators import login_required
from datetime import date


def home(request):
    docs =  Document.objects.all().order_by('-expDate')
    today = date.today()
    return render_to_response('index.html', {'today': today, 'docs': docs})
    
